//
// Created by delin10 on 2020/5/2.
//

#ifndef CSAMPLE_SOCK_UTILS_H
#define CSAMPLE_SOCK_UTILS_H

#include <netinet/in.h>
#include <memory.h>

int create_tcp_sock();

int open_server_socket(char *bind_addr, int port);

int connect_to_tcp_server(char *ip, int port);

int setnonblocking(int sock);

#endif //CSAMPLE_SOCK_UTILS_H
